/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.SRP.ViolateSRP.ViolateSRP.impl;
import za.ac.cput.principles.SRP.ViolateSRP.ViolateSRP.IviolateSRP;
/**
 *
 * @author Administrator
 */
public class Employee implements IviolateSRP
{
    private long salW = 1000;
    private long salS = 2000;
    private long tax = 10;
    
    @Override
    public void setSal(long salS) 
    {
        this.salS = salS;
    }

    @Override
    public void setWage(long salW) 
    {
        this.salW = salW;
    }

    @Override
    public long getSal() 
    {
        return salS;
    }

    @Override
    public long getWage() 
    {
        return salW;
    }

    @Override
    public long calcTaxS() 
    {
        return ((salS * tax)/100);
    }

    @Override
    public long calcTaxW() 
    {
        return ((salW * tax)/100);
    }
    
}
